<?php
	include "../../inc/log/admin_session1.php";
	// include "../../inc/data/connAdmin.php";
?>
<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<?php
// 1903010328 获取学生的学号
include "../../inc/data/connAdmin.php";
$stuId = $_GET['stuid'];
$stuClass = $_POST['classname'];
// echo $stuId,$stuClass;
// 1903010328 执行学生所属班级的更新
$sql = "update mamx_stu 
		set classname = '$stuClass' 
        where stuid = '$stuId'";
$stmt=$conn->prepare($sql);
$stmt->Execute();
// 1903010328 成功提示
?>
<script type="text/javascript">
  alert('<?=$stuId?>已成功转入 <?=$stuClass?>！');
  location = "stuAdmin.php";
</script>
</body>
</html>